[v2] migrate to Operator SDK v1.0.0 #1007
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Zbynek Roubalik [email protected]
OMG, sorry for the huge PR, there wasn't an easy way how to split things.
Operator SDK is finally in 1.0.0 version, this brought change in the project layout and other stuff. Now it is internally using Kubebuilder for project scaffolding and kustomize to generate YAML manifests. See the migration guide for details:
https://sdk.operatorframework.io/docs/building-operators/golang/project_migration_guide/
What was changed
deploy
directory was replaced with theconfig
directory including a new layout of Kubernetes manifests files:deploy/crds/
are now inconfig/crd/bases
deploy/crds/
are now inconfig/samples
deploy/operator.yaml
is now inconfig/manager/manager.yaml
deploy
are now inconfig/rbac/
config/metrics-server
build/Dockerfile
andbuild/Dockerfile.adapter
are moved to the project root directorypkg/apis
andpkg/controllers
are now in the root directory.cmd/manager/main.go
is now in the root directorcmd/adapter/main.go
is now inadapter/main.go
Makefile
Makefile
was modifed a lot, eg. you can usemake deploy
to deploy KEDA,make run
to run locally and other useful stepskeda-2.0.0.yaml
) instead of.zip
ortar.gz
artifactsChecklist
Fixes #969